package pw.hais.znyj.mod.led;

import android.widget.TextView;

import java.util.List;

import pw.hais.app.AppAdapter;
import pw.hais.znyj.R;

/**
 * Created by hais1992 on 2016/11/20/020.
 */

public class LedAdapter extends AppAdapter<LedModel, LedAdapter.ViewHolder> {


    public LedAdapter(List<LedModel> mList) {
        super(mList, R.layout.activity_led_item_led, ViewHolder.class);
    }


    @Override
    public void onBindView(int position, ViewHolder mViewHolder, final LedModel mItem) {
        mViewHolder.text_pin.setText(mItem.pin + "");
        mViewHolder.text_time.setText(mItem.time + "");
        mViewHolder.text_number.setText(mItem.number + "");
        mViewHolder.text_remarks.setText(mItem.remarks);
    }

    public static class ViewHolder extends AppAdapter.ViewHolder {
        public TextView text_remarks;
        public TextView text_pin;
        public TextView text_time;
        public TextView text_number;
    }
}
